/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ictius.estructuras;

import ictius.excepciones.DesapilaException;
import ictius.excepciones.PilaExceptions;

/**
 *
 * @author Tadeo
 */
public interface Pila {
    void apilar (Object x);
    Object desapila()throws DesapilaException;
    void desapilar() throws DesapilaException;
    Object ultimoElemento() throws PilaExceptions;
    Object primerElemento() throws PilaExceptions;
    boolean esVacia();
    void vaciar();
}
